﻿using System;
using Volo.Abp.Auditing;
using Volo.Abp.Domain.Entities;

namespace Joy.Erp.BasicArchives.Core
{
    public interface IDocumentLineAggregateRoot<TKey> : IEntity<TKey>, IAuditedObject
    {
        /// <summary>
        /// 设置id
        /// </summary>
        /// <param name="id"></param>
        void SetId(TKey id);

        /// <summary>
        /// 行号
        /// </summary>
        int LineNo { get; set; }

        /// <summary>
        /// 来源类型
        /// </summary>
        string SourceType { get; set; }

        /// <summary>
        /// 来源主键
        /// </summary>
        string SourceKey { get; set; }

        /// <summary>
        /// 来源时间
        /// </summary>
        DateTime? SourceCreatedOn { get; set; }
    }

    public interface IDocumentLineAggregateRoot : IDocumentLineAggregateRoot<Guid>
    {

    }
}
